
let Vue 

function install(_Vue){
  Vue=_Vue
  Vue.mixin({
    beforeCreate() {
      if (this.$options.msg) {
        Vue.prototype.$msg = this.$options.msg;
      }
    }
  })
}

class Msg{
  success(that,type,content){ 
    that.$message({
      message: content,
      type
    })
  }
}

export default { Msg, install }
